package com.yao.seckill.web.controller;


import com.yao.seckill.core.SeckillResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class DemoController {


    
    /**
     * @description 
     * @author yaobing
     * @created Date 2022/08/29 23:34:01
     * @modified By  
     * @modified Date  2022/08/29 23:34:01

     * @return java.lang.String
     */
    @RequestMapping("demo")
    public SeckillResponse demo(){
        log.info("我是中国人");
        return SeckillResponse.success("我是中国人");
    }


    @GetMapping("demo/add")
    public SeckillResponse addDemo(){
        return SeckillResponse.success("新添加接口");
    }
}
